package com.dongdong.api;

import com.dongdong.model.TbItem;
import com.dongdong.vo.ItemVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient("dongdong-goods-service")
public interface ItemApi {
    @GetMapping("/item/getItemById")
    public TbItem getItemById(@RequestParam Long id);

    @PostMapping("/item/subCount")
    public void subCount(@RequestBody List<ItemVO> itemVOS);

}
